package jsyf.oa.entity.wreport;

import com.alibaba.fastjson.JSONObject;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author: @张巨波 @zhangjubo
 * @creat: on 2017/11/28.
 * @since: V1.0.0
 * @see jsyf.oa.web
 */
@Entity
@Table(name = "T_WRT_BRANCH", schema = "oa", catalog = "")
public class WReportBranchEntity  implements Serializable {
    private  String id;
    private  String wId;
    private String branchName;
    private String exchange;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getwId() {
        return wId;
    }

    public void setwId(String wId) {
        this.wId = wId;
    }

    public String getBranchName() {
        return branchName;
    }

    public void setBranchName(String branchName) {
        this.branchName = branchName;
    }


    public String getExchange() {
        return exchange;
    }

    public void setExchange(String exchange) {
        this.exchange = exchange;
    }

    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("id",getId());
        obj.put("w_id",getwId());
        obj.put("branch_name",getBranchName());
        obj.put("exchange",getExchange());
        return obj;
    }

    public JSONObject getJSONObjectId(){
        JSONObject obj = new JSONObject();

        obj.put("id",getId());

        return  obj;
    }
}
